package shapeCalculate;

    public class test {
        public static void main(String[] args) {
            // 创建不同图形对象
            Circle circle = new Circle(5);
            Rectangle rectangle = new Rectangle(4, 6);
            Triangle triangle = new Triangle(3, 4, 5);

            // 测试 printShapeInfo 方法
            ShapeCalculator.printShapeInfo(circle);
            ShapeCalculator.printShapeInfo(rectangle);
            ShapeCalculator.printShapeInfo(triangle);

        }
    }
